package com.yxzx.ebs.service;

import com.yxzx.ebs.entity.EbsVideo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yxzx.ebs.entity.vo.EbsVideoInfoForm;

/**
 * <p>
 * 课程视频 服务类
 * </p>
 *
 * @author kongfuzi
 * @since 2020-07-31
 */
public interface EbsVideoService extends IService<EbsVideo> {
    /**
     * 根据小节Id删除阿里云视频
     * @param id
     * @return
     */
    boolean removeVideoById(String id);

    /**
     * 根据课程Id删除小节
     * @param courseId
     */
    boolean removeByCourseId(String courseId);

    /**
     * 判断章节是否存在视频小节
     * @param chatperId
     * @return
     */
    boolean existsVideo(String chatperId);

    /**
     * 保存视频小节信息
     * @param videoInfoForm
     */
    void saveVideoInfo(EbsVideoInfoForm videoInfoForm);

    /**
     * 根据id查询小节信息
     * @param id
     * @return
     */
    EbsVideoInfoForm getVedioInfoById(String id);

    /**
     * 更新视频小节信息
     * @param videoInfoForm
     */
    void updateVideoInfo(EbsVideoInfoForm videoInfoForm);
}
